home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 31 / PC Actual CD 31.iso / dists / DOC / INSTALL.SH < prev   
Encoding:
Linux/UNIX/POSIX Shell Script  |  1998-09-22  |  337 b   |  13 lines

  1. #!/bin/sh
  2. #
  3. if [ "`id -u`" != "0" ]; then
  4.     echo "Sorry, this must be done as root."
  5.     exit 1
  6. fi
  7. echo "You are about to extract the doc distribution into ${DESTDIR:-/} - are you SURE"
  8. echo -n "you want to do this over your installed system (y/n)? "
  9. read ans
  10. if [ "$ans" = "y" ]; then
  11.     cat doc.?? | tar --unlink -xpzf - -C ${DESTDIR:-/}
  12. fi
  13.